/* 通用样式 - 所有页面共享 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 响应式网格系统 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

/* 头部导航 */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #2980b9;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-menu a:hover {
    color: #3498db;
}

.menu-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.menu-text {
    display: none;
}

/* 下拉菜单 */
.nav-menu li:not(.no-dropdown) {
    position: relative;
}

.nav-menu li:not(.no-dropdown):hover ul {
    display: block;
}

.nav-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    padding: 10px 0;
    z-index: 1001;
}

.nav-menu ul li {
    margin: 0;
}

.nav-menu ul a {
    padding: 10px 20px;
    display: block;
    border-bottom: 1px solid #ecf0f1;
}

.nav-menu ul li:last-child a {
    border-bottom: none;
}

/* 移动端导航 */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle-label span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary {
    background: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
}

/* 图标字体 */
.icon-calendar::before { content: "📅"; }
.icon-folder::before { content: "📁"; }
.icon-tag::before { content: "🏷️"; }
.icon-eye::before { content: "👁️"; }
.icon-arrow-right::before { content: "→"; }
.icon-arrow-left::before { content: "←"; }
.icon-home::before { content: "🏠"; }
.icon-file::before { content: "📄"; }

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* 响应式图片 */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

footer p {
    margin: 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .row {
        margin: 0 -10px;
    }
    
    .col-md-8,
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* 移动端导航 */
    .nav-toggle-label {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-toggle:checked ~ .nav-menu {
        transform: translateY(0);
    }
    
    .nav-menu li {
        border-bottom: 1px solid #ecf0f1;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        justify-content: flex-start;
    }
    
    .menu-text {
        display: block;
    }
    
    .nav-menu ul {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 0;
        padding: 0;
    }
    
    .nav-menu ul a {
        padding-left: 40px;
    }
    
    /* Hero区域 */
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    /* 工具类 */
    .text-center-mobile { text-align: center; }
    .text-left-mobile { text-align: left; }
    .text-right-mobile { text-align: right; }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
} 